package com.situ.skymallcartapi.service;

import com.situ.model.Product;
import com.situ.utils.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "skymall-gateway")
public interface ProductFeignService {
    //根据商品id查询商品信息
    @GetMapping("/api/v1/products/id/{id}")
     ResponseEntity<JsonResult<Product>> findById(@PathVariable Integer id);
}
